<template>
  <div class="no-auth-container">
    <a-result status="403" title="403" sub-title="抱歉，您没有权限访问此页面。">
      <template #extra>
        <a-button type="primary" @click="goBack">返回</a-button>
        <a-button @click="goHome">回到首页</a-button>
      </template>
    </a-result>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.back()
}

const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.no-auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 20px;
}
</style>
